package com.kclm.service;

import com.kclm.dao.UserDao;
import com.kclm.dao.VipDao;

/**
 * @Author : lvhx
 * @Date: 2025/11/3 9:02
 * @Description:
 */
public class UserService {
    private UserDao userDao;
//    private UserDao aaa;
    private VipDao vipDao;


    public void setAaa(VipDao vipDao) {
        this.vipDao = vipDao;
    }
//    public void setVipDao(VipDao vipDao) {
//        this.vipDao = vipDao;
//    }
    // 使用set方法注入  属性必须提供set方法
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    public void save(){
        userDao.insert();
        vipDao.insert();
    }
}
